<template>
    <div>
        <button @click="getStudents">获取学生信息</button>
    </div>

</template>

<script>
    import axios from 'axios'
export default {
    name:'App',
    methods:{
        getStudents(){
            axios.get('').then(
                response =>{
                    console.log('请求成功了',response.data)
                },
                error =>{
                    console.log('')
                }
            )
        }
    }
}
</script>